<table border="1" cellpadding="3" cellspacing="0" bordercolor="#000000" style="border-collapse: collapse; table-layout:fixed;word-wrap:break-word;" width="100%" class="table_common">
    <tr>
        <th rowspan="2">地区</th>
        <th rowspan="2">大区</th>
        <th rowspan="2">小区</th>
        <th rowspan="2">省份</th>
        <th rowspan="2">城市</th>
        <th rowspan="2">城市等级</th>
        <th rowspan="2">专营店</th>
        <th rowspan="2">专营店编码</th>
        <th rowspan="2">所属双月</th>
        <th rowspan="2">项目流水号</th>
        <th rowspan="2">项目名称</th>
        <th rowspan="2">项目标准动作</th>
        <th rowspan="2">项目活动类型</th>
        <th colspan="3">项目预算申请</th>
        <th colspan="2">项目预算审核</th>
        <th colspan="3">项目结算申请</th>
        <th colspan="2">项目结算审核</th>
    </tr>
    <tr>
    	<th>项目预算费用</th>
    	<th>线上广宣预算费用</th>
    	<th>线下活动预算费用</th>
    	<th>预算审核结果</th>
    	<th>预算审核费用</th>
    	<th>项目结算费用</th>
    	<th>线上广宣结算费用</th>
    	<th>线下活动结算费用</th>
    	<th>结算审核结果</th>
    	<th>结算审核费用</th>
    </tr>
    <?php
    foreach($projectList as $k => $v){
		$procData = isset($procList[$v['procId']]) ? $procList[$v['procId']] : array();
		$storeData = isset($allStoreList[$procData['storeId']]) ? $allStoreList[$procData['storeId']] : array();
		$detailMoney = isset($projectMoneyDetail[$v['id']]) ? $projectMoneyDetail[$v['id']] : array();
    ?>
    <tr>
        <td><?php echo $storeData['area'];?></td>
        <td><?php echo $storeData['region'];?></td>
        <td><?php echo $storeData['spsarea'];?></td>
        <td><?php echo $storeData['province'];?></td>
        <td><?php echo $storeData['city'];?></td>
        <td><?php echo $storeData['cityLevel'];?></td>
        <td><?php echo $storeData['storeName'];?></td>
        <td><?php echo $storeData['coding'];?></td>
        <td><?php echo $procData['timeUnitStr'];?></td>
        <td><?php echo $v['id'];?></td>
        <td><?php echo $v['projectName'];?></td>
        <td><?php echo $v['actionTypeStr'];?></td>
        <td><?php echo $v['eventTypeStr'];?></td>
        <td><?php echo $detailMoney['budgetApply']['total'];?></td>
        <td><?php echo $detailMoney['budgetApply']['online'];?></td>
        <td><?php echo $detailMoney['budgetApply']['offline'];?></td>
        <td><?php echo $v['budgetAuditStr']; ?></td>
        <td><?php echo $detailMoney['budgetAudit']['total'];?></td>
        <td><?php echo $detailMoney['settleApply']['total'];?></td>
        <td><?php echo $detailMoney['settleApply']['online'];?></td>
        <td><?php echo $detailMoney['settleApply']['offline'];?></td>
        <td><?php echo $v['settleAuditStr']; ?></td>
        <td><?php echo $detailMoney['settleAudit']['total'];?></td>
    </tr>
    <?php }?>
</table>